<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{fragments/layout}">
<html th:fragment="commonFoot">
<input type="hidden" id="context_path" th:value="${#httpServletRequest.getContextPath()}">
<script th:src="@{/static/jquery.min.js}"></script>
<script th:src="@{/static/admin/layui/layui.js}"></script>
<script>
    var path = $("#context_path").val();
    layui.config({
        base:path+'/static/admin/js/module/' //你的模块目录
    }).use('dialog'); //加载入口
</script>
<script th:src="@{/static/admin/js/common.js}"></script>

<table class="layui-hide" id="test" lay-filter="test" ></table>
<script type="text/html" id="toolbarDemo">
    <button class="layui-btn layui-btn-normal addBtn" lay-event="addData">
        <i class="layui-icon">&#xe654;</i></button>
    <button class="layui-btn layui-btn-danger delAllBtn" lay-event="delData">
        <i class="layui-icon">&#xe640;</i></button>
    </div>
</script>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs editBtn" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs delBtn" lay-event="del">删除</a>
</script>
</html>
</html>